package com.xmy.cultivate.service;

import com.xmy.cultivate.entity.ChangeSchoolDetail;
import com.xmy.cultivate.entity.CourseScheduling;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xmy.cultivate.entity.Grade;
import org.springframework.transaction.annotation.Transactional;

import java.text.ParseException;
import java.time.LocalDate;

/**
 * <p>
 * 排课表 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2024-03-20
 */
public interface ICourseSchedulingService extends IService<CourseScheduling> {

    @Transactional
    Integer autoScheduling(Long gradeId, LocalDate startDateParam) throws ParseException;

    @Transactional
    Integer autoSchedulingForDate(Long gradeId, LocalDate startDate, LocalDate endDate) throws ParseException;

    Integer changeSchoolCreate(Grade grade, Grade gradeNew, ChangeSchoolDetail changeSchoolDetail,boolean isDelOd);
}
